package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author LXB
 * @Date 2024/1/1 21:32
 * @Description
 **/
@Data
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("red_packet_pool")
@ApiModel(value = "RedPacketPool对象", description = "红包池表")
public class RedPacketPool implements Serializable {
    private static final long serialVersionUID = 8928793902650057504L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 领取的用户ID
     */
    private String receiveNuserId;

    /**
     * 红包金额
     */
    private Double redPacketMoney;

    /**
     * 是否已领取
     */
    private Boolean alreadyReceived;

    /**
     * 订单号
     */
    private String wxOrderNumber;

    /**
     * 红包创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 红包更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
